Ext.define('Demo.view.Viewport', {
	extend: 'Ext.container.Viewport',
	//布局方式
	layout: 'border',
	items: [{
		title:'ExtJS案例',
		collapisble: true,
		region:'north',
		height: 100,
		html: '<br><center><font size=5>MVC模式实现的ExtJS案例</font><br><font size=2>这里需要放一张图片</font></center>'
	},{
		title: '功能菜单',
		region: 'west',
		width: 180,
		split: true,
		layout:"anchor",
		collapisble: true,
                //这里是修改的部分
		items:[{
				xtype:'panel',
				collapsible: true,
				title:"采购模块",
				layout:'anchor',
				style:{
					"text-align":"center"
				},
				items:[{
					xtype: 'navButton',
					text:"采购请购单",
					anchor:"80%",
					urls:"cgqgd",
					controllerName:"purchase.testController"
				},{
					xtype: 'navButton',
					text:"采购询价单",
					anchor:"80%",
					urls:"cgxjd",
					controllerName:"purchase.purchaseInquiryController"
				},{
					xtype: 'navButton',
					text:"采购订单",
					anchor:"80%",
					urls:"cgddd",
					controllerName:"purchase.purchaseOrderController"
				},{
					xtype: 'navButton',
					text:"采购入库单",
					anchor:"80%",
					urls:"cgrkd"
				},{
					xtype: 'navButton',
					text:"采购退货单",
					anchor:"80%",
					urls:"cgthd"
				},{
					xtype: 'navButton',
					text:"采购分摊",
					anchor:"80%",
					urls:"cgft",
					controllerName:"purchase.cgftController"
				}]
			},{
				xtype:'panel',
				collapsible: true,
				title:"销售模块",
				layout:'anchor',
				style:{
					"text-align":"center"
				},
				items:[{
					xtype: 'navButton',
					text:"销售报价单",
					anchor:"80%",
					urls:"xsbjd"
				},{
					xtype: 'navButton',
					text:"销售订单",
					anchor:"80%",
					urls:"xsdd"
				},{
					xtype: 'navButton',
					text:"销售出库单",
					anchor:"80%",
					urls:"xsckd",
					controllerName:"sale.xsckdController"	
				},{
					xtype: 'navButton',
					text:"销售退货单",
					anchor:"80%",
					urls:"xsthd"
				}]
			},{
				xtype:"panel",
				collapsible:true,
				title:"账款模块",
				layout:'anchor',
				style:{
					"text-align":"center"
				},
				items:[{
					xtype: 'navButton',
					text:"预收单",
					anchor:"80%",
					urls:"ysd"
				},{
					xtype: 'navButton',
					text:"预付单",
					anchor:"80%",
					urls:"yfd"
				},{
					xtype: 'navButton',
					text:"应付冲款单",
					anchor:"80%",
					urls:"yfckd"
				},{
					xtype: 'navButton',
					text:"应收冲款单",
					anchor:"80%",
					urls:"ysckd"
				}]
			},{
				xtype:"panel",
				collapsible:true,
				title:"库存模块",
				layout:'anchor',
				style:{
					"text-align":"center"
				},
				items:[{
					xtype: 'navButton',
					text:"盘点单",
					anchor:"80%",
					urls:"pdd"
				},{
					xtype: 'navButton',
					text:"调价单",
					anchor:"80%",
					urls:"tjd"
				},{
					xtype: 'navButton',
					text:"调拨单",
					anchor:"80%",
					urls:"dbd"
				}]
			}]
	}, {
		id: 'mainContent',
//		title: '主题内容显示',
		layout: 'anchor',
		region: 'center',
		collapisble: true,
		layout:'fit',
		items:[{
			xtype:"orderTab",
			id:"mainTabs"
				
		}]
//		contentEl: 'contentIframe'
	}]
});